<div class="bjui-pageContent">
    <form action="/admin/appset/edit" data-toggle="ajaxform" data-options="{closeCurrent:true,tabid:'appset-edit-form'}">
        <div class="bjui-row">

            <label class="row-label">标题</label>
            <div class="row-input">
                <input type="text" name="title" value="{{$info->title}}">
            </div>

            <label class="row-label">位置</label>
            <div class="row-input">
                <select name="logistics_id" data-toggle="selectpicker" data-width="200" required>
                    <option value="">底部</option>
                    @foreach ($parentList as $val)
                        @if ($val->id == $info->pid)
                            <option value="{{$val->id}}" selected>{{$val->title}}</option>
                        @else
                            <option value="{{$val->id}}">{{$val->title}}</option>
                        @endif
                    @endforeach
                </select>
            </div>

            <label class="row-label">图标</label>
            <div class="row-input">
                <div style="width: 300px">
                    <input type="file" data-name="img_url" data-toggle="webuploader" data-options="
                {
                    pick: {label: '点击选择图片'},
                    server: 'admin/photo/upload',
                    fileNumLimit: 1,
                    formData: {_token : '{{ csrf_token() }}',path_type:4},
                    required: true,
                    uploaded: '{{$info->img_url_path}}',
                    initUploaded: '{{$info->img_url}}',
                    basePath: '',
                    accept: {
                        title: '图片',
                        extensions: 'jpg,png',
                        mimeTypes: '.jpg,.png'
                    }
                }">
                </div>
            </div>

            <label class="row-label">点击时图标</label>
            <div class="row-input">
                <div style="width: 300px">
                    <input type="file" data-name="img_url_active" data-toggle="webuploader" data-options="
                {
                    pick: {label: '点击选择图片'},
                    server: 'admin/photo/upload',
                    fileNumLimit: 1,
                    formData: {_token : '{{ csrf_token() }}',path_type:4},
                    required: true,
                    uploaded: '{{$info->img_url_active_path}}',
                    initUploaded: '{{$info->img_url_active}}',
                    basePath: '',
                    accept: {
                        title: '图片',
                        extensions: 'jpg,png',
                        mimeTypes: '.jpg,.png'
                    }
                }">
                </div>
            </div>

            <input type="hidden" name="id" value="{{$info->id}}">
            <label class="row-label"></label>
            <div class="row-input">
                <input type="hidden" name="is_submit" id="is_submit" value="1">
                <button type="submit" class="btn-default">保存</button>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript"></script>